26. Where Should This Feature Live?

Where Should This Feature Live?

Now, we're going to implement the new feature! Right now, the notes go in chronological order from past to present. We want them in the reverse order (i.e., so that the latest note appears first in the list). Where should we make this change?

If we want to reverse the order of our notes, where should that functionality go?

SOLUTION: The Octopus

Solution

Where Should This Feature Live? - JavaScript Design Patterns